package com.leesche.zcsp.node.web.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class SysLocalCriteria {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public SysLocalCriteria() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andLocalidIsNull() {
            addCriterion("LocalID is null");
            return (Criteria) this;
        }

        public Criteria andLocalidIsNotNull() {
            addCriterion("LocalID is not null");
            return (Criteria) this;
        }

        public Criteria andLocalidEqualTo(String value) {
            addCriterion("LocalID =", value, "localid");
            return (Criteria) this;
        }

        public Criteria andLocalidNotEqualTo(String value) {
            addCriterion("LocalID <>", value, "localid");
            return (Criteria) this;
        }

        public Criteria andLocalidGreaterThan(String value) {
            addCriterion("LocalID >", value, "localid");
            return (Criteria) this;
        }

        public Criteria andLocalidGreaterThanOrEqualTo(String value) {
            addCriterion("LocalID >=", value, "localid");
            return (Criteria) this;
        }

        public Criteria andLocalidLessThan(String value) {
            addCriterion("LocalID <", value, "localid");
            return (Criteria) this;
        }

        public Criteria andLocalidLessThanOrEqualTo(String value) {
            addCriterion("LocalID <=", value, "localid");
            return (Criteria) this;
        }

        public Criteria andLocalidLike(String value) {
            addCriterion("LocalID like", value, "localid");
            return (Criteria) this;
        }

        public Criteria andLocalidNotLike(String value) {
            addCriterion("LocalID not like", value, "localid");
            return (Criteria) this;
        }

        public Criteria andLocalidIn(List<String> values) {
            addCriterion("LocalID in", values, "localid");
            return (Criteria) this;
        }

        public Criteria andLocalidNotIn(List<String> values) {
            addCriterion("LocalID not in", values, "localid");
            return (Criteria) this;
        }

        public Criteria andLocalidBetween(String value1, String value2) {
            addCriterion("LocalID between", value1, value2, "localid");
            return (Criteria) this;
        }

        public Criteria andLocalidNotBetween(String value1, String value2) {
            addCriterion("LocalID not between", value1, value2, "localid");
            return (Criteria) this;
        }

        public Criteria andDomainnameIsNull() {
            addCriterion("DomainName is null");
            return (Criteria) this;
        }

        public Criteria andDomainnameIsNotNull() {
            addCriterion("DomainName is not null");
            return (Criteria) this;
        }

        public Criteria andDomainnameEqualTo(String value) {
            addCriterion("DomainName =", value, "domainname");
            return (Criteria) this;
        }

        public Criteria andDomainnameNotEqualTo(String value) {
            addCriterion("DomainName <>", value, "domainname");
            return (Criteria) this;
        }

        public Criteria andDomainnameGreaterThan(String value) {
            addCriterion("DomainName >", value, "domainname");
            return (Criteria) this;
        }

        public Criteria andDomainnameGreaterThanOrEqualTo(String value) {
            addCriterion("DomainName >=", value, "domainname");
            return (Criteria) this;
        }

        public Criteria andDomainnameLessThan(String value) {
            addCriterion("DomainName <", value, "domainname");
            return (Criteria) this;
        }

        public Criteria andDomainnameLessThanOrEqualTo(String value) {
            addCriterion("DomainName <=", value, "domainname");
            return (Criteria) this;
        }

        public Criteria andDomainnameLike(String value) {
            addCriterion("DomainName like", value, "domainname");
            return (Criteria) this;
        }

        public Criteria andDomainnameNotLike(String value) {
            addCriterion("DomainName not like", value, "domainname");
            return (Criteria) this;
        }

        public Criteria andDomainnameIn(List<String> values) {
            addCriterion("DomainName in", values, "domainname");
            return (Criteria) this;
        }

        public Criteria andDomainnameNotIn(List<String> values) {
            addCriterion("DomainName not in", values, "domainname");
            return (Criteria) this;
        }

        public Criteria andDomainnameBetween(String value1, String value2) {
            addCriterion("DomainName between", value1, value2, "domainname");
            return (Criteria) this;
        }

        public Criteria andDomainnameNotBetween(String value1, String value2) {
            addCriterion("DomainName not between", value1, value2, "domainname");
            return (Criteria) this;
        }

        public Criteria andIpaddrIsNull() {
            addCriterion("IPAddr is null");
            return (Criteria) this;
        }

        public Criteria andIpaddrIsNotNull() {
            addCriterion("IPAddr is not null");
            return (Criteria) this;
        }

        public Criteria andIpaddrEqualTo(String value) {
            addCriterion("IPAddr =", value, "ipaddr");
            return (Criteria) this;
        }

        public Criteria andIpaddrNotEqualTo(String value) {
            addCriterion("IPAddr <>", value, "ipaddr");
            return (Criteria) this;
        }

        public Criteria andIpaddrGreaterThan(String value) {
            addCriterion("IPAddr >", value, "ipaddr");
            return (Criteria) this;
        }

        public Criteria andIpaddrGreaterThanOrEqualTo(String value) {
            addCriterion("IPAddr >=", value, "ipaddr");
            return (Criteria) this;
        }

        public Criteria andIpaddrLessThan(String value) {
            addCriterion("IPAddr <", value, "ipaddr");
            return (Criteria) this;
        }

        public Criteria andIpaddrLessThanOrEqualTo(String value) {
            addCriterion("IPAddr <=", value, "ipaddr");
            return (Criteria) this;
        }

        public Criteria andIpaddrLike(String value) {
            addCriterion("IPAddr like", value, "ipaddr");
            return (Criteria) this;
        }

        public Criteria andIpaddrNotLike(String value) {
            addCriterion("IPAddr not like", value, "ipaddr");
            return (Criteria) this;
        }

        public Criteria andIpaddrIn(List<String> values) {
            addCriterion("IPAddr in", values, "ipaddr");
            return (Criteria) this;
        }

        public Criteria andIpaddrNotIn(List<String> values) {
            addCriterion("IPAddr not in", values, "ipaddr");
            return (Criteria) this;
        }

        public Criteria andIpaddrBetween(String value1, String value2) {
            addCriterion("IPAddr between", value1, value2, "ipaddr");
            return (Criteria) this;
        }

        public Criteria andIpaddrNotBetween(String value1, String value2) {
            addCriterion("IPAddr not between", value1, value2, "ipaddr");
            return (Criteria) this;
        }

        public Criteria andLocalnameIsNull() {
            addCriterion("LocalName is null");
            return (Criteria) this;
        }

        public Criteria andLocalnameIsNotNull() {
            addCriterion("LocalName is not null");
            return (Criteria) this;
        }

        public Criteria andLocalnameEqualTo(String value) {
            addCriterion("LocalName =", value, "localname");
            return (Criteria) this;
        }

        public Criteria andLocalnameNotEqualTo(String value) {
            addCriterion("LocalName <>", value, "localname");
            return (Criteria) this;
        }

        public Criteria andLocalnameGreaterThan(String value) {
            addCriterion("LocalName >", value, "localname");
            return (Criteria) this;
        }

        public Criteria andLocalnameGreaterThanOrEqualTo(String value) {
            addCriterion("LocalName >=", value, "localname");
            return (Criteria) this;
        }

        public Criteria andLocalnameLessThan(String value) {
            addCriterion("LocalName <", value, "localname");
            return (Criteria) this;
        }

        public Criteria andLocalnameLessThanOrEqualTo(String value) {
            addCriterion("LocalName <=", value, "localname");
            return (Criteria) this;
        }

        public Criteria andLocalnameLike(String value) {
            addCriterion("LocalName like", value, "localname");
            return (Criteria) this;
        }

        public Criteria andLocalnameNotLike(String value) {
            addCriterion("LocalName not like", value, "localname");
            return (Criteria) this;
        }

        public Criteria andLocalnameIn(List<String> values) {
            addCriterion("LocalName in", values, "localname");
            return (Criteria) this;
        }

        public Criteria andLocalnameNotIn(List<String> values) {
            addCriterion("LocalName not in", values, "localname");
            return (Criteria) this;
        }

        public Criteria andLocalnameBetween(String value1, String value2) {
            addCriterion("LocalName between", value1, value2, "localname");
            return (Criteria) this;
        }

        public Criteria andLocalnameNotBetween(String value1, String value2) {
            addCriterion("LocalName not between", value1, value2, "localname");
            return (Criteria) this;
        }

        public Criteria andProtoltypeIsNull() {
            addCriterion("ProtolType is null");
            return (Criteria) this;
        }

        public Criteria andProtoltypeIsNotNull() {
            addCriterion("ProtolType is not null");
            return (Criteria) this;
        }

        public Criteria andProtoltypeEqualTo(Integer value) {
            addCriterion("ProtolType =", value, "protoltype");
            return (Criteria) this;
        }

        public Criteria andProtoltypeNotEqualTo(Integer value) {
            addCriterion("ProtolType <>", value, "protoltype");
            return (Criteria) this;
        }

        public Criteria andProtoltypeGreaterThan(Integer value) {
            addCriterion("ProtolType >", value, "protoltype");
            return (Criteria) this;
        }

        public Criteria andProtoltypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("ProtolType >=", value, "protoltype");
            return (Criteria) this;
        }

        public Criteria andProtoltypeLessThan(Integer value) {
            addCriterion("ProtolType <", value, "protoltype");
            return (Criteria) this;
        }

        public Criteria andProtoltypeLessThanOrEqualTo(Integer value) {
            addCriterion("ProtolType <=", value, "protoltype");
            return (Criteria) this;
        }

        public Criteria andProtoltypeIn(List<Integer> values) {
            addCriterion("ProtolType in", values, "protoltype");
            return (Criteria) this;
        }

        public Criteria andProtoltypeNotIn(List<Integer> values) {
            addCriterion("ProtolType not in", values, "protoltype");
            return (Criteria) this;
        }

        public Criteria andProtoltypeBetween(Integer value1, Integer value2) {
            addCriterion("ProtolType between", value1, value2, "protoltype");
            return (Criteria) this;
        }

        public Criteria andProtoltypeNotBetween(Integer value1, Integer value2) {
            addCriterion("ProtolType not between", value1, value2, "protoltype");
            return (Criteria) this;
        }

        public Criteria andAdminidIsNull() {
            addCriterion("AdminID is null");
            return (Criteria) this;
        }

        public Criteria andAdminidIsNotNull() {
            addCriterion("AdminID is not null");
            return (Criteria) this;
        }

        public Criteria andAdminidEqualTo(String value) {
            addCriterion("AdminID =", value, "adminid");
            return (Criteria) this;
        }

        public Criteria andAdminidNotEqualTo(String value) {
            addCriterion("AdminID <>", value, "adminid");
            return (Criteria) this;
        }

        public Criteria andAdminidGreaterThan(String value) {
            addCriterion("AdminID >", value, "adminid");
            return (Criteria) this;
        }

        public Criteria andAdminidGreaterThanOrEqualTo(String value) {
            addCriterion("AdminID >=", value, "adminid");
            return (Criteria) this;
        }

        public Criteria andAdminidLessThan(String value) {
            addCriterion("AdminID <", value, "adminid");
            return (Criteria) this;
        }

        public Criteria andAdminidLessThanOrEqualTo(String value) {
            addCriterion("AdminID <=", value, "adminid");
            return (Criteria) this;
        }

        public Criteria andAdminidLike(String value) {
            addCriterion("AdminID like", value, "adminid");
            return (Criteria) this;
        }

        public Criteria andAdminidNotLike(String value) {
            addCriterion("AdminID not like", value, "adminid");
            return (Criteria) this;
        }

        public Criteria andAdminidIn(List<String> values) {
            addCriterion("AdminID in", values, "adminid");
            return (Criteria) this;
        }

        public Criteria andAdminidNotIn(List<String> values) {
            addCriterion("AdminID not in", values, "adminid");
            return (Criteria) this;
        }

        public Criteria andAdminidBetween(String value1, String value2) {
            addCriterion("AdminID between", value1, value2, "adminid");
            return (Criteria) this;
        }

        public Criteria andAdminidNotBetween(String value1, String value2) {
            addCriterion("AdminID not between", value1, value2, "adminid");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIsNull() {
            addCriterion("CreateTime is null");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIsNotNull() {
            addCriterion("CreateTime is not null");
            return (Criteria) this;
        }

        public Criteria andCreatetimeEqualTo(Date value) {
            addCriterion("CreateTime =", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotEqualTo(Date value) {
            addCriterion("CreateTime <>", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeGreaterThan(Date value) {
            addCriterion("CreateTime >", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("CreateTime >=", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLessThan(Date value) {
            addCriterion("CreateTime <", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLessThanOrEqualTo(Date value) {
            addCriterion("CreateTime <=", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIn(List<Date> values) {
            addCriterion("CreateTime in", values, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotIn(List<Date> values) {
            addCriterion("CreateTime not in", values, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeBetween(Date value1, Date value2) {
            addCriterion("CreateTime between", value1, value2, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotBetween(Date value1, Date value2) {
            addCriterion("CreateTime not between", value1, value2, "createtime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIsNull() {
            addCriterion("UpdateTime is null");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIsNotNull() {
            addCriterion("UpdateTime is not null");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeEqualTo(Date value) {
            addCriterion("UpdateTime =", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotEqualTo(Date value) {
            addCriterion("UpdateTime <>", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeGreaterThan(Date value) {
            addCriterion("UpdateTime >", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("UpdateTime >=", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeLessThan(Date value) {
            addCriterion("UpdateTime <", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeLessThanOrEqualTo(Date value) {
            addCriterion("UpdateTime <=", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIn(List<Date> values) {
            addCriterion("UpdateTime in", values, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotIn(List<Date> values) {
            addCriterion("UpdateTime not in", values, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeBetween(Date value1, Date value2) {
            addCriterion("UpdateTime between", value1, value2, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotBetween(Date value1, Date value2) {
            addCriterion("UpdateTime not between", value1, value2, "updatetime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}